package org.sao.security.core.validate.code.sms;

import org.sao.security.core.validate.code.impl.AbstractValidateCodeProcessor;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.ServletRequestUtils;
import org.springframework.web.context.request.ServletWebRequest;

@Component("smsValidateCodeProcessor")
public class SmsCodeProcessor extends
		AbstractValidateCodeProcessor<ValidateCode> {

	@Override
	protected void send(ServletWebRequest request, ValidateCode validateCode)
			throws Exception {
		// TODO Auto-generated method stub
		String mobile = ServletRequestUtils.getRequiredStringParameter(
				request.getRequest(), "mobile");
		System.out.println("向手机发送" + mobile + "发送验证码" + validateCode.getCode());
	}

}
